<!--
 * @Descripttion: 
 * @Author: 夜雨
 * @Email: 448408740@qq.com
 * @Date: 2019-11-25 17:57:03
 * @LastEditTime : 2019-12-27 15:52:56
 -->
 <!DOCTYPE html>
 <html>
 <head>
     <meta charset="utf-8">
     <title>系统设置</title>
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
     <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="/static/admin/style/admin.css" media="all">
 </head>
 <body>
 
 <div class="layui-fluid">
     <div class="layui-row layui-col-space15">
         <div class="layui-col-md12">
             <div class="layui-card">
                 <div class="layui-card-body">
                     <form class="layui-form" action="" lay-filter="component-form-element">
                        <div class="layui-field-box">
                            <blockquote class="layui-elem-quote"> 系统相关设置 </blockquote>
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>名称：</th>
                                        <td>值：</td>
                                    </tr>
                                    <tr>
                                        <th>搜索词接口</th>
                                        <td>
                                            <input type="radio" name="referer_api" value="0" title="百度官方" {if $system['referer_api'] eq 0} checked {/if}>
                                            <input type="radio" name="referer_api" value="1" title="第三方"" {if $system['referer_api'] eq 1} checked {/if}>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="component-form-element">立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                     </form>
                 </div>
             </div>
         </div>
     </div>
 </div>
 
 <script src="/static/layui/layui.js"></script>
 <script>
     layui.config({
         base: '/static/admin/' //静态资源所在路径
     }).use(['form'], function(){
         var $ = layui.$
             ,admin = layui.admin
             ,element = layui.element
             ,form = layui.form;
 
         form.on('submit(component-form-element)', function(data){
             $.post("{:url('system/index')}", data.field, function (res) {
                layer.msg(res.msg);
             }, 'json');
             return false;
         });
     });
 </script>
 </body>
 </html>